import { contextBridge, ipcRenderer } from 'electron';

contextBridge.exposeInMainWorld('sandbox', {
  runFunction: (funcId: string, params: any) => {
    return ipcRenderer.invoke('execute-function', { funcId, params });
  }
});